from urllib.parse import urljoin

from configs import settings


def get_file_url(file_path):
    return urljoin(settings.HOST, settings.MEDIA_URL, file_path)
